import request from '@/utils/request'

export function queryDatas(params) {
  return request({
    url: '/importHost/list',
    method: 'get',
    params: params
  })
}
// 下载用户导入模板
export function importHostTemplate() {
  return request({
    url: '/importHost/template',
    method: 'get'
  })
}


export function queryResourcesTotal(supplier) {
  return request({
    url: '/importHost/resourcesTotal/'+supplier,
    method: 'get',
  })
}

export function removeData(data) {
  return request({
    url: '/importHost/remove',
    method: 'delete',
    data: data
  })
}

export function recharge(data) {
  return request({
    url: '/importHost/recharge',
    method: 'post',
    data: data
  })
}

export function rechargeMonth(data) {
  return request({
    url: '/importHost/rechargeMonth',
    method: 'post',
    data: data
  })
}

export function removeAllCharge() {
  return request({
    url: '/importHost/removeAllCharge',
    method: 'delete',
  })
}
